package com.jy.api.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by hanxi on 2017/9/2.
 * 店铺续费记录
 */
@Entity
@Data
@NoArgsConstructor
public class StoreRenewTransaction {
    @Id
    @Column(length = 50)
    private String id;
    private String storeId;
    private Date expireTimeBefore;
    private Date expireTimeAfter;
    /**
     * 续费金额
     */
    private double amount = 0;
    /**
     * 操作人id
     */
    private String userId;
    /**
     * 操作人名称
     */
    private String username;
    @Column(insertable = false, updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date addTime;

}
